package com.org.qrtrace.mapper;

import com.org.qrtrace.pojo.Account;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bonnie
 * @since 2023-03-18
 */
@Mapper
public interface AccountMapper extends BaseMapper<Account> {
    @Select("select * from account where uuid = #{uuid}")
    public Account getByID(String uuid);

    @Select("select * from account where user = #{user}")
    Account login(String user);
}
